import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * User: ttq
 * Date: 13-7-30
 * Time: 上午9:47
 * To change this template use File | Settings | File Templates.
 */
public class MethodBeforeAdviceImpl implements MethodBeforeAdvice {

    public void before(Method method, Object[] args, Object obj) {
        System.out.println("运行前检查...");
        System.out.println("Method:" + method.getName());
        System.out.println("Args:" + Arrays.asList(args));
        System.out.println("Object:" + obj);
    }
}
